#include "stdafx.h"
#include "IFile.h"

IFile::IFile(const std::string name) { file.open(name); }

std::string IFile::readline() {
  char origin[MAX];
  file.getline(origin, MAX);
  return std::string(origin);
}

bool IFile::isOpen() { return file.is_open(); }

bool IFile::eof() { return file.eof(); }

IFile::~IFile() { file.close(); }
